package com.lannuokeji.biz.items.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 设备信息表
 * </p>
 *
 * @author lannuoTeck
 * @since 2018-03-19
 */
@TableName("g_items_device")
public class Device extends Model<Device> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 类别
     */
    @TableField("typeId")
    private Integer typeId;
    /**
     * 存放地
     */
    @TableField("addressId")
    private Integer addressId;
    /**
     * 所属部门
     */
    @TableField("departmentId")
    private Integer departmentId;
    /**
     * 设备名称
     */
    private String name;
    /**
     * 设备型号
     */
    private String model;
    /**
     * 价格
     */
    private String price;
    /**
     * 设备数量
     */
    private Integer count;
    /**
     * 借出数量
     */
    @TableField("outCount")
    private Integer outCount;
    private Integer root;
    /**
     * 设备使用权限分配
     */
    private String roleids;
    @TableField("createTime")
    private Date createTime;
    @TableField("updateTime")
    private Date updateTime;
    /**
     * 状态：0 禁用， 1 启用， 2 删除
     */
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getOutCount() {
        return outCount;
    }

    public void setOutCount(Integer outCount) {
        this.outCount = outCount;
    }

    public Integer getRoot() {
        return root;
    }

    public void setRoot(Integer root) {
        this.root = root;
    }

    public String getRoleids() {
        return roleids;
    }

    public void setRoleids(String roleids) {
        this.roleids = roleids;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Device{" +
        ", id=" + id +
        ", typeId=" + typeId +
        ", addressId=" + addressId +
        ", departmentId=" + departmentId +
        ", name=" + name +
        ", model=" + model +
        ", price=" + price +
        ", count=" + count +
        ", outCount=" + outCount +
        ", root=" + root +
        ", roleids=" + roleids +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", status=" + status +
        "}";
    }
}
